package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.WorkflowShipSandModel;
import java.util.ArrayList;
import java.util.List;

public class WorkflowShipSandExcelListener extends AnalysisEventListener<WorkflowShipSandModel> {

    private List<WorkflowShipSandModel> result = new ArrayList<WorkflowShipSandModel>();

    @Override
    public void invoke(WorkflowShipSandModel workflowShipSandModel, AnalysisContext analysisContext) {
        result.add(workflowShipSandModel);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext analysisContext) {

    }

    public List<WorkflowShipSandModel> getResult() {
        return result;
    };
}
